package com.link.base.base.accnt.dao.mybatis.mapper;


import com.link.base.base.accnt.model.AccntFollow;
import com.link.core.basic.dao.mapper.BasicMapper;

import java.util.List;
/**
 * Copyright  hande Company. All Rights Reserved.
 *
 * @author  unknwon
 * @date:   2018/11/7 17:05
 * @version 1.0
 */

public interface AccntFollowMapper extends BasicMapper<AccntFollow> {

    //***************服务于企点 start***************
    /**
     * 新建跟进-来源企点
     * @param qdfollow
     * @throws Exception
     */
    public void insertFromQD(AccntFollow qdfollow) throws Exception;

    /**
     * 更新跟进-来源企点
     * @param qdfollow
     * @throws Exception
     */
    public void updateFromQD(AccntFollow qdfollow) throws Exception;
    /**
     * 查询全部不分页 根据客户rowid -来源企点
     * @param qdfollow
     * @return
     * @throws Exception
     */

    public List<AccntFollow> queryAllByAccntRowId(AccntFollow qdfollow) throws Exception;

    /**
     * 更新rid-来源企点
     * @param qdfollow
     * @throws Exception
     */
    public void updateRidFromQD(AccntFollow qdfollow) throws Exception;

    //***************服务于企点 end***************
    /**
     * 将记录时间回写到客户上最后跟进时间字段
     * @param entity
     * @throws Exception
     */
    public void updateAccntLastFollowTime(AccntFollow entity) throws Exception;
}
